@import 'style.css';

/* 请假系统特定样式 */
.menu-item .badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: auto;
}

.breadcrumb-nav {
    background: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb-nav i {
    color: var(--primary-color);
}

/* 内容包装器样式 */
.content-wrapper {
    background: var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: calc(100vh - 200px);
}

/* 请假表单样式 */
.leave-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.2);
}

/* 请假记录表格样式 */
.leave-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.leave-table th,
.leave-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.leave-table th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    text-align: left;
}

.leave-table tbody tr:hover {
    background: rgba(67,97,238,0.05);
}

/* 状态标签样式 */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending {
    background: rgba(241,196,15,0.1);
    color: var(--warning-color);
}

.status-approved {
    background: rgba(46,204,113,0.1);
    color: var(--success-color);
}

.status-rejected {
    background: rgba(231,76,60,0.1);
    color: var(--danger-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .leave-form {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .leave-table {
        display: block;
        overflow-x: auto;
    }
} 